﻿@model BusinessManagementStudio.ViewModel.CreationSuccessful

@{
    ViewBag.Title = "Successful";
    TempData.Keep();
}

<title>Confirmation</title>

<h2>Successful</h2>

@using (Html.BeginForm("MultipleCommandForAdmin", "Maintenance", FormMethod.Post))
{
    if (Model.IsCompany == true)
    {
        <div>@Html.DisplayFor(model => model.CompanyName)</div>
    }
    else if (Model.IsFM == true)
    {
        <div>@Html.DisplayFor(model => model.FMName)</div>
    }
    else if (Model.IsClient == true)
    {
        <div>@Html.DisplayFor(model => model.ClientName)</div>
    }
    else if (Model.IsContractor == true)
    {
        <div>@Html.DisplayFor(model => model.ContractorName)</div>
    }
    else if (Model.IsContractorAssignment == true)
    {
        <div>@Html.DisplayFor(model => model.ContractorAssignment)</div>
    }
    <br />
    <div>
        <button type="submit" name="Command" value="Back">Back</button> 
    </div>
}